调整打印机服务实现

chengzhenyu 8 years ago
parent
commit
9c4fd37b6c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/src/main/java/ai/pai/lensman/printer/PrinterSettingPresenter.java

+ 2 - 1
app/src/main/java/ai/pai/lensman/printer/PrinterSettingPresenter.java

@@ -64,6 +64,7 @@ public class PrinterSettingPresenter implements PrinterSettingContract.Presenter
64 64
             view.onBluetoothEnabled();
65 65
             view.onPairedDeviceDiscovered(queryPairedDevices());
66 66
             discoverNewDevices();
67
+            queryPrinterStatus();
67 68
         }else{
68 69
             view.onBluetoothDisabled();
69 70
             view.showToast(context.getString(R.string.bt_is_disabled));
@@ -92,7 +93,7 @@ public class PrinterSettingPresenter implements PrinterSettingContract.Presenter
92 93
     @Override
93 94
     public void printQR(String qrCodeStr) {
94 95
         if(printerService==null){
95
-            view.showToast(context.getString(R.string.printer_status_query_fail));
96
+            view.showToast(context.getString(R.string.printer_service_boot_fail));
96 97
             return;
97 98
         }
98 99
         if(TextUtils.isEmpty(Preferences.getInstance().getPrinterMac())){